#include<iostream>
#include<algorithm>
#include<vector>
#include<cstdlib>
#include<stdio.h>

using namespace std;

int main()
{
	int n,x;
	vector<int> vec;
	cin>>n;
	for(int i=0;i<n;i++)
	{
		scanf("%d",&x);
		vec.push_back(x);
	}
	sort( vec.begin(),vec.end() );
	//cout<<vec[0]<<" "<<vec[1]<<" "<<vec[2]<<" "<<vec[3]<<" "<<vec[4]<<endl;
	cout<<vec[n/2]<<endl;
	
	system("pause") ;
	return 0;
}
